#-------------------------------------------------
#
# Project created by QtCreator 2025-04-18T12:32:55
#
#-------------------------------------------------

QT       += core gui network multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = hand_in_hand
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

# 添加zlib库
LIBS += -lz

# 根据操作系统添加特定的库和头文件
linux {
    CONFIG += x11
    LIBS += -lX11 -lXtst
}

macx {
    LIBS += -framework ApplicationServices
}

SOURCES += \
    src/main.cpp \
    src/logging/logger.cpp \
    src/network/networkmanager.cpp \
    src/network/lanservice.cpp \
    src/client/client.cpp \
    src/client/ui/clientwindow.cpp \
    src/client/ui/screenviewer.cpp \
    src/client/audioplayer.cpp \
    src/server/server.cpp \
    src/server/screencapture.cpp \
    src/server/inputsimulator.cpp \
    src/server/serverui.cpp \
    src/server/audiocapture.cpp

HEADERS += \
    src/logging/logger.h \
    src/network/networkmanager.h \
    src/network/lanservice.h \
    src/client/client.h \
    src/client/ui/clientwindow.h \
    src/client/ui/screenviewer.h \
    src/client/audioplayer.h \
    src/server/server.h \
    src/server/screencapture.h \
    src/server/inputsimulator.h \
    src/server/serverui.h \
    src/server/audiocapture.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
